package ru.urfc.portal.model;

import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import ru.urfc.portal.model.accounting.Contragent;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@XmlRootElement
public abstract class SpectrObjectWithContragent extends SpectrObjectWithCheck {

	private Contragent contragent;

	public SpectrObjectWithContragent() {
		super();
	}

	public SpectrObjectWithContragent(Contragent contragent) {
		this.contragent = contragent;
	}

	@XmlTransient
	@Override
	public Contragent getContragent() {
		return contragent;
	}

}
